package cn.yzfy.common.enums;

import cn.yzfy.common.base.enums.IEnumsValue;
import lombok.Getter;

/**
 * 资源类型枚举
 */
@Getter
public enum ResourcesTypeEnum implements IEnumsValue {
  MENU(1, "菜单"),
  DIRECTORY(2, "目录"),
  BUTTON(3, "按钮"),
  ;
  
  /**
   * 枚举对应数据库存储值
   */
  private final Integer value;
  
  /**
   * 描述
   */
  private final String desc;
  
  ResourcesTypeEnum(Integer value, String desc) {
    this.value = value;
    this.desc = desc;
  }
}